package com.wonderful.mall.seckill.feign;

import com.wonderful.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("mall-coupon")
public interface CouponFeignService {
    @GetMapping("/coupon/seckillsession/latest3DaysSession")
    R getLatest3DaysSession();

    @GetMapping("/coupon/seckillsession/getSecKillSku")
    R getSecKillSku();

    @GetMapping("/coupon/seckillsession/getSkuSecKillInfo")
    R getSkuSecKillInfo(@RequestParam("skuId") Long skuId);
}
